Changeset 185 for libcaca/trunk/libcaca/math.c
 Timestamp:
 Nov 16, 2003, 1:33:35 AM (19 years ago)
 Location:
 libcaca/trunk/libcaca
 Files:

 1 edited
 1 moved
Legend:
 Unmodified
 Added
 Removed

libcaca/trunk/libcaca/math.c
r171 r185 1 1 /* 2 * lib eeASCIIArt library2 * libcaca ASCIIArt library 3 3 * Copyright (c) 2002, 2003 Sam Hocevar <sam@zoy.org> 4 4 * All Rights Reserved … … 25 25 #include <stdlib.h> 26 26 27 #include " ee.h"28 #include " ee_internals.h"27 #include "caca.h" 28 #include "caca_internals.h" 29 29 30 int ee_rand(int min, int max)30 int caca_rand(int min, int max) 31 31 { 32 32 return min + (int)((1.0*(maxmin+1)) * rand() / (RAND_MAX+1.0)); 33 33 } 34 34 35 unsigned int ee_sqrt(unsigned int a)35 unsigned int caca_sqrt(unsigned int a) 36 36 { 37 37 if(a == 0) … … 55 55 } 56 56 57 return 2 * ee_sqrt(a / 4);57 return 2 * caca_sqrt(a / 4); 58 58 } 59 59
Note: See TracChangeset
for help on using the changeset viewer.