Added tons of AI generated docs and a lot of cleanups. No code changes. (0.41.5)
This commit is contained in:
parent
24c54fba41
commit
4e69a3ce63
151 changed files with 3897 additions and 427 deletions
|
|
@ -5,13 +5,25 @@
|
|||
* Copyright 2026 Johannes Findeisen <you@hanez.org>
|
||||
* Licensed under the terms of the Apache-2.0 license.
|
||||
* https://opensource.org/license/apache-2-0
|
||||
*
|
||||
* Added: 2026-01-03
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file exp.c
|
||||
* @brief Implements the OP_EXP opcode using C99 math.h exp().
|
||||
*
|
||||
* VM opcode snippet included by vm.c. Provides the natural exponential function.
|
||||
*
|
||||
* Behavior:
|
||||
* - Pops one numeric operand (int or float).
|
||||
* - Computes e^x in double precision.
|
||||
* - Pushes a VAL_FLOAT result.
|
||||
*
|
||||
* Stack effect:
|
||||
* - Pop: x
|
||||
* - Push: exp(x)
|
||||
*
|
||||
* Types:
|
||||
* - Accepts VAL_INT and VAL_FLOAT; others raise a runtime error.
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue