logs archiveBotHelp.net / Freenode / #3dsdev / 2015 / September / 2 / 2
yuriks
I'll make a PR to ctrulib later
or Lectem can do it if he feels like :V
Lectem
uh
PR for?
yuriks
change asm -> __asm__
endrift
replacing `asm` with `__asm__` for non-GNU builds
yuriks
volatile -> __volatile__
in the headers
endrift
well, asm volatile
yuriks
yea
endrift
volatile without asm is still fine
Lectem
why do you want to do this
__stuf__ is legacy
yuriks
Lectem: asm isn't a C keyword, so gcc doesn't recognize it in C99
Lectem
for asm and volatile
volatile is
yuriks
if you're on a system header then you should use __asm__
oh, wow, ctrulib doesn't even properly include internally :|
Lectem
you wish it did
yuriks
now I need sf2d.h
or... not
(Action) yolo's the port
Lectem
tbh if I knew people would follow, I'd refactor ctrulib
and impose coding rules
but well
yuriks
I feel you
but yeah, don't believe that for a second...
Lectem
tfw I saw that most FS_ was documented
but in the .c file
yuriks
sort of on the fence about that
I like tidy .h files, especially when you have the source around anyway
(otherwise, header docs all the way)
Lectem
well I would agree if ctrulib was not distributed as libonly
yuriks
hm, yeah
I use a local checkout of it, so I kind of forget that sometimes <_<
Lectem
while it is true we almost all use the latest commit
its still shipped with dka
and most (new) users wont take the time to download and update
much less look at the source
yuriks
well that was a productive... hour and a half :|
Lectem
personally I just made a symlink :p
yuriks
time to actually code
endrift
(Action) recompiled gcc, grumbles
*recompiles
yuriks
fun times for everyone
Lectem
20 minutes later ... :p
endrift
it seems to actually be building
I'll let you know if it tanks
I like how you need gcc to build gcc
good luck building it with clang
also this CPU is pretty good at compiling stuff so I tossed -j9 at it
yuriks
...why do these flags in gx.h accept a parameter
#define GX_TRANSFER_FLIP_VERT(x) ((x)<<0)
???
#define GX_TRANSFER_RAW_COPY(x) ((x)<<3)
etc
endrift
yeah I have no idea
that's not how flags work
yuriks
then the fill/trigger and bitdepth are thrown into an enum instead too
it's just random
endrift
yuriks: time to make 3dslib
(please don't actually do this)
watching gcc compiling is really boring
yuriks
endrift: I totally want to make my own library, at least for the GPU stuff
I just don't since I tell myself i don't have the time
endrift
picalib
furyhunter
...is the arm arch reference manual behind a paywall?
Normmatt
furyhunter, no its free from arm if you register
furyhunter
lame, I don't want to register an account
endrift
odd, I've never had to register
furyhunter
(Action) searches for an upload to some university web server
yuriks
you can find it by googling
exactly, lol
Normmatt
then google some website is bound to be rehosting it
Lectem
yuriks : blame xerpi https://github.com/smealum/ctrulib/blame/master/libctru/include/3ds/gpu/gx.h#L47 :p
yuriks
Lectem: I had all the flags nicely done in a local file, should've PRed that sooner
Lectem
<yuriks> then the fill/trigger and bitdepth are thrown into an enum instead too <<< better suggestion ?
I prefer enums to defines usually
yuriks
Lectem: oh, nevermind, those are for a different register
Lectem
np ^^
its weird
DSP_RecvDataIsReady accepts any input
no error
:'(
endrift
furyhunter: ISA reference? that's easy
well, ARMv6
furyhunter
yeah I found it
for v7-a and r
endrift
not sure about ARMv6K
Normmatt
Lectem, it probably doesn't use any input
endrift
oh ok
furyhunter
needed it for my "Programming for Performance" course
Lectem
Normatt : it seemed like it used a channel or something
or maybe a register offset
guess I'll try with write instead
*send
3dbrew says SendData(chan 0-3)
wonder how it was figured ou
out
or perhaps my implementation is wrong
« prev 1 2 3 4 5 6 7 8 next »