All of lore.kernel.org
 help / color / mirror / Atom feed
* memrchr() implementation
@ 2011-07-29  4:33 Tay Ray Chuan
  2011-07-29  4:40 ` Jeff King
  2011-07-29  4:47 ` Jonathan Nieder
  0 siblings, 2 replies; 3+ messages in thread
From: Tay Ray Chuan @ 2011-07-29  4:33 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Junio C Hamano, Jeff King, Jonathan Nieder

Hi,

I'm writing a patch that requires the use of memrchr(). [1] As far as
I know, memrchr() is non-standard.

So what's the best way to get git to use memrchr()?

I was thinking of getting git to use glibc's implementation if glibc
is present, if not, use a naive implementation included in git's code
base [2].

--
Footnotes:
[1] For those interested, it's regarding content trimming to speed out
diffs. You can see memrchr() in use at
https://github.com/rctay/git/blob/tg%2Fgsoc-diff%2Ftrim-ends/xdiff/xprepare.c#L203

[2] (ISC-style license)
http://www.sudo.ws/repos/sudo/file/c1ab4b940980/compat/memrchr.c

-- 
Cheers,
Ray Chuan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-29  4:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-29  4:33 memrchr() implementation Tay Ray Chuan
2011-07-29  4:40 ` Jeff King
2011-07-29  4:47 ` Jonathan Nieder

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.