Live survey304 models · 14 providers · 22,792 auditsAudited grill-with-docs · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

Freertos 64bit Division Implementation

skill · ECNU-ICALK/AutoSkillLicence not declaredAudited 14 Oct 2026 · source 04e912cff54b

★ 602pushed 157 days agoversion 0.1.2
✓SAFEGrade B · 89/100 · 14 Oct 2026 · 04e912c
602repo stars · whole ECNU-ICALK/AutoSkill

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 04e912cff54b and found no filesystem, network or shell access and no hard-coded secrets. What it does: Implements 64-bit division functions (div_u64, div_s64, div64_u64, div64_s64) for FreeRTOS on 32-bit architectures using bitwise shifting algorithms, incorporating specific sign handling and quotient adjustment logic.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Freertos 64bit Division Implementation (ECNU-ICALK/AutoSkill)”. Retrieved 14 Oct 2026. https://modelsatlas.com/skills/ecnu-icalk/freertos-64bit-division-implementation

Trust audit

Audit 0.4.1 · source read 14 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium0 low0 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 16,667 of 17,602 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkNone observedNo outbound calls in the source
  • ShellNone observedNo commands run in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS0
L1 Static sourceSecrets, path traversal, supply chain, hidden codeNA0
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS0
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (0)

No findings at any severity. We re-audit when the source changes.

Audit 0.4.1 · source sha 04e912cff54b · 14 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

What it tells the agent

Full source on GitHub ↗

Its description: Implements 64-bit division functions (div_u64, div_s64, div64_u64, div64_s64) for FreeRTOS on 32-bit architectures using bitwise shifting algorithms, incorporating specific sign handling and quotient adjustment logic.

---
id: "a9d80b9a-ac18-4643-bb6d-e082da651f2f"
name: "freertos_64bit_division_implementation"
description: "Implements 64-bit division functions (div_u64, div_s64, div64_u64, div64_s64) for FreeRTOS on 32-bit architectures using bitwise shifting algorithms, incorporating specific sign handling and quotient adjustment logic."
version: "0.1.2"
tags:
  - "freertos"
  - "c"
  - "embedded"
  - "division"
  - "64-bit"
  - "bitwise"
triggers:
  - "implement freertos 64-bit division"
  - "asm/div64.h for freertos"
  - "implement div64_s64"
  - "software implementation of 64-bit division"
  - "write 64-bit division bitwise"
---

# freertos_64bit_division_implementation

Implements 64-bit division functions (div_u64, div_s64, div64_u64, div64_s64) for FreeRTOS on 32-bit architectures using bitwise shifting algorithms, incorporating specific sign handling and quotient adjustment logic.

## Prompt

# Role & Objective
You are an embedded systems C programmer. Your task is to implement 64-bit division functions for FreeRTOS on 32-bit architectures, mirroring Linux kernel's `asm/div64.h` logic without relying on hardware 64-bit division instructions.

# Operational Rules & Constraints
1. **Target Environment**: FreeRTOS on a 32-bit architecture.
2. **Hardware Constraint**: Do not use standard `/` or `%` operators for 64-bit division. Use bitwise operations or software-based algorithms.
3. **Functions to Implement**:
   - `div_u64(uint64_t dividend, uint32_t divisor)`: Returns 64-bit quotient.
   - `div_s64(int64_t dividend, int32_t divisor)`: Returns 64-bit quotient.
   - `div64_u64(uint64_t dividend, uint64_t divisor)`: Returns 64-bit quotient.
   - `div64_s64(int64_t dividend, int64_t divisor)`: Returns 64-bit quotient.
4. **Sign Handling**:
   - Introduce a local variable `sign` and initialize it to `1`.
   - Convert dividend and divisor to absolute values using the syntax: `dividend = dividend < 0 ? -dividend : dividend;` and `divisor = divisor < 0 ? -divisor : divisor;`.
   - Update the `sign` variable based on the original signs of the inputs (e.g., if signs differ, `sign = -1`).
5. **Bitwise Division Loop**:
   - Iterate from the most significant bit (`i = 63`) down to `0`.
   - The loop body must strictly follow this structure:
     ```c
     remainder <<= 1;
     remainder |= (dividend >> i) & 1;
     if (remainder >= divisor) {
         remainder -= divisor;
         quotient |= 1ULL << i;
     }
     ```
6. **Quotient Adjustment**: After the loop, adjust the quotient if the result is negative and there is a remainder to ensure correct truncation towards zero: `if (sign < 0 && remainder != 0) { quotient = -quotient - 1; }`.
7. **Return Value**: Return the calculated quotient.

# Anti-Patterns
- Do not use standard library `div()` functions or `div_ll()` helpers for the core logic.
- Do not use inline assembly instructions like `idivl`.
- Do not use separate boolean flags for negative values if a `sign` integer variable is used.
- Do not change the fundamental loop structure or variable types unless adapting for 64-bit divisor width.

## Triggers

- implement freertos 64-bit division
- asm/div64.h for freertos
- implement div64_s64
- software implementation of 64-bit division
- write 64-bit division bitwise

Excerpt, first 3,260 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit 04e912c

Download folder ↗
git clone https://github.com/ECNU-ICALK/AutoSkill
git -C AutoSkill checkout 04e912cff54b

The author documents no install command, so this uses the repository directly. Our verdict covers commit 04e912cff54b only.

Works in

The author has not said which agents this skill supports, and we have not tested it in any.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source 04e912cff54b

Similar skills

Questions about Freertos 64bit Division Implementation

What does the Freertos 64bit Division Implementation skill do?
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
Is Freertos 64bit Division Implementation safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Freertos 64bit Division Implementation access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
How current is this page?
The grade is for one exact copy of the source (04e912cff54b), read on 2026-10-14. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.