Go to the source code of this file.
Classes | |
| struct | PmInt_s |
Typedefs | |
| typedef struct PmInt_s | PmInt_t |
| typedef struct PmInt_s * | pPmInt_t |
Functions | |
| PmReturn_t | int_dup (pPmObj_t pint, pPmObj_t *r_pint) |
| PmReturn_t | int_new (int32_t val, pPmObj_t *r_pint) |
| PmReturn_t | int_positive (pPmObj_t, pPmObj_t *r_pint) |
| PmReturn_t | int_negative (pPmObj_t pobj, pPmObj_t *r_pint) |
| PmReturn_t | int_bitInvert (pPmObj_t pobj, pPmObj_t *r_pint) |
| PmReturn_t | int_pow (pPmObj_t px, pPmObj_t py, pPmObj_t *r_pn) |
Integer object type header.
| PmReturn_t int_bitInvert | ( | pPmObj_t | pobj, | |
| pPmObj_t * | r_pint | |||
| ) |
Implements the UNARY_INVERT bcode.
Creates a new int with a value that is the bitwise inversion of the given int.
| pobj | Pointer to target object |
| PmReturn_t int_dup | ( | pPmObj_t | pint, | |
| pPmObj_t * | r_pint | |||
| ) |
Creates a duplicate Integer object
Created specifically for the index value in FOR_LOOP.
| pint | Pointer to int obj to duplicate. | |
| r_pint | Return by ref, ptr to new int |
| PmReturn_t int_negative | ( | pPmObj_t | pobj, | |
| pPmObj_t * | r_pint | |||
| ) |
Implements the UNARY_NEGATIVE bcode.
Creates a new int with a value that is the negative of the given int.
| pobj | Pointer to target object | |
| r_pint | Return by ref, ptr to int |
| PmReturn_t int_new | ( | int32_t | val, | |
| pPmObj_t * | r_pint | |||
| ) |
Creates a new Integer object
| n | Value to assign int (signed 32-bit). | |
| r_pint | Return by ref, ptr to new int |
| PmReturn_t int_positive | ( | pPmObj_t | , | |
| pPmObj_t * | r_pint | |||
| ) |
Implements the UNARY_POSITIVE bcode.
Creates a new int with the same value as the given int.
| pobj | Pointer to target object | |
| r_pint | Return by ref, ptr to int |
| PmReturn_t int_pow | ( | pPmObj_t | px, | |
| pPmObj_t | py, | |||
| pPmObj_t * | r_pn | |||
| ) |
Returns by reference an integer that is x raised to the power of y.
| x | The integer base | |
| y | The integer exponent | |
| r_pn | The return value of x ** y |
1.5.9