Changeset 43 for abuse/trunk/src/include
- Timestamp:
- Mar 2, 2008, 1:58:48 AM (14 years ago)
- Location:
- abuse/trunk/src/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/include/lisp.hpp
r39 r43 21 21 22 22 #define FIXED_TRIG_SIZE 360 // 360 degrees stored in table 23 extern longsin_table[FIXED_TRIG_SIZE]; // this should be filled in by external module23 extern int32_t sin_table[FIXED_TRIG_SIZE]; // this should be filled in by external module 24 24 #define TBS 1662 // atan table granularity 25 extern u nsigned short atan_table[TBS];25 extern uint16_t atan_table[TBS]; 26 26 #define NILP(x) (x==NULL) 27 27 #define DEFINEDP(x) (x!=l_undefined) … … 197 197 extern int space_size[4]; 198 198 void *nth(int num, void *list); 199 long lisp_atan2(long dy, longdx);200 long lisp_sin(longx);201 long lisp_cos(longx);199 int32_t lisp_atan2(int32_t dy, int32_t dx); 200 int32_t lisp_sin(int32_t x); 201 int32_t lisp_cos(int32_t x); 202 202 void restore_heap(void *val, int heap); 203 203 void *mark_heap(int heap); -
abuse/trunk/src/include/lisp2.hpp
r39 r43 62 62 63 63 #define FIXED_TRIG_SIZE 360 // 360 degrees stored in table 64 extern longsin_table[FIXED_TRIG_SIZE]; // this should be filled in by external module64 extern int32_t sin_table[FIXED_TRIG_SIZE]; // this should be filled in by external module 65 65 #define TBS 1662 // atan table granularity 66 extern u nsigned short atan_table[TBS];66 extern uint16_t atan_table[TBS]; 67 67 68 68 /* ------------------------- COMPATIBILITY -------------------- */ … … 111 111 char* symbol_name (void* symbol); 112 112 int item_type (void* cell); 113 long lisp_cos(longx);114 long lisp_sin(longx);115 long lisp_atan2(long dy, longdx);113 int32_t lisp_cos(int32_t x); 114 int32_t lisp_sin(int32_t x); 115 int32_t lisp_atan2(int32_t dy, int32_t dx); 116 116 void push_onto_list(Cell *object, Cell *&list); 117 117
Note: See TracChangeset
for help on using the changeset viewer.