If you really like accounting -- and I mean rolling up your sleeves and adding or subtracting back various accounting bric-a-brac -- you might really like Barr Pharmaceuticals' (NYSE:BRL) quarterly report. If, however, discussions of accounting and one-time items make your eyelids droopy, you may be tempted to just look at the market's positive reaction today and content yourself that the company did well enough.

As it stands, I'd say that the company did better than "well enough," and that's not uncommon for the generic sector -- when times are good (like with Teva's (NASDAQ:TEVA) recent release), they're really good; when they're not ... well ...

This time around, Barr reported that total revenue was up 25%, with 17% growth in generics sales, 21% growth in proprietary drug sales, and a tripling of "other revenue" from the likes of Teva and Kos Pharmaceuticals (NASDAQ:KOSP).

Below the revenue line is where things get "fun." Gross margin looked OK, but not great, until you adjust for an inventory write-up. And operating income was just nutty -- it looks great as is, but you have to adjust for a settlement in this quarter and a settlement last quarter. Do that and operating income was up about 10% -- and that's without adjusting for the impact of stock option expense (should you choose to do that).

Earnings weren't the only news this time around. The company also announced that it had reached a settlement with Shire (NASDAQ:SHPGY) concerning patent litigation for that company's Adderall drug for ADHD. Under the settlement, Barr can launch a generic version in 2009 -- 10 years earlier than the patent expiry, but later than if Barr had prevailed completely. And while no money is changing hands (something that torpedoed a settlement between Bristol-Myers (NYSE:BMY) and Apotex recently) there is an additional product licensing agreement between the two companies. Now, I'm not saying the two are necessarily related, but I don't think it's totally unfair to wonder.

There's a lot going in Barr's favor these days, including a potentially significant (and attractively priced) acquisition and the possibility of eventual FDA approval of OTC sales of Plan B emergency contraception. If you haven't checked this one out yet, now may be the time for a little due diligence.

For more non-generic Foolishness:

Biotech. Nanotech. High tech. Any tech. David Gardner and his Foolish band of analysts cover it all for Motley Fool Rule Breakers , and they've unearthed four multibagger picks as of this writing. Find out the names of these market-beaters by asking us for a 30-day all-access pass to Rule Breakers. It's free, which means all you have to lose is the prospect of richer returns.

Fool contributor Stephen Simpson has no financial interest in any stocks mentioned (that means he's neither long nor short the shares).